package com.yixun.lbx.mapper.company;

import com.yixun.lbx.entity.YxProCompanyProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface CompanyProductMapper {
    /*
     * 添加 企业相关 照片
     * */
    int insetCompanyProduct(HashMap<String, Object> map);

    /*
     * 更新 企业照片
     * */
    int updateCompanyProduct(HashMap<String, Object> map);

    /*
     * 删除 status字段设置 1 无效
     * */
    int deleteCompanyProduct(HashMap<String, Object> map);

    /*通过字段查询*/
    List<YxProCompanyProduct> getCompanyProductByArgs(YxProCompanyProduct companyProduct);

    Integer getCount(HashMap<String, String> map);

    List<YxProCompanyProduct> getListByPage(HashMap<String, String> map);

    List<YxProCompanyProduct> getSearchListByPage(HashMap<String, String> map);

    String getQyNameByQyId(String qyId);
    
    YxProCompanyProduct getOneById(@Param("id") String id);
}
